/**
 */
package org.mro.grib.model.files.secondEdition.sections;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Production Status Of Data</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.mro.grib.model.files.secondEdition.sections.SectionsPackage#getProductionStatusOfData()
 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Code table 1.3 \u2013 Production status of data'"
 * @generated
 */
public enum ProductionStatusOfData implements Enumerator {
	/**
	 * The '<em><b>OPERATIONAL PRODUCTS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #OPERATIONAL_PRODUCTS_VALUE
	 * @generated
	 * @ordered
	 */
	OPERATIONAL_PRODUCTS(0, "OPERATIONAL_PRODUCTS", "OPERATIONAL_PRODUCTS"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>OPERATIONAL TEST PRODUCTS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #OPERATIONAL_TEST_PRODUCTS_VALUE
	 * @generated
	 * @ordered
	 */
	OPERATIONAL_TEST_PRODUCTS(1, "OPERATIONAL_TEST_PRODUCTS", "OPERATIONAL_TEST_PRODUCTS"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>RESEARCH PRODUCTS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RESEARCH_PRODUCTS_VALUE
	 * @generated
	 * @ordered
	 */
	RESEARCH_PRODUCTS(2, "RESEARCH_PRODUCTS", "RESEARCH_PRODUCTS"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>RE ANALYSIS PRODUCTS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RE_ANALYSIS_PRODUCTS_VALUE
	 * @generated
	 * @ordered
	 */
	RE_ANALYSIS_PRODUCTS(3, "RE_ANALYSIS_PRODUCTS", "RE_ANALYSIS_PRODUCTS"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>TIGGE</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TIGGE_VALUE
	 * @generated
	 * @ordered
	 */
	TIGGE(4, "TIGGE", "TIGGE"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>TIGGE TEST</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TIGGE_TEST_VALUE
	 * @generated
	 * @ordered
	 */
	TIGGE_TEST(5, "TIGGE_TEST", "TIGGE_TEST"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>MISSING</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #MISSING_VALUE
	 * @generated
	 * @ordered
	 */
	MISSING(255, "MISSING", "MISSING"); //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>OPERATIONAL PRODUCTS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>OPERATIONAL PRODUCTS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #OPERATIONAL_PRODUCTS
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Operational products'"
	 * @generated
	 * @ordered
	 */
	public static final int OPERATIONAL_PRODUCTS_VALUE = 0;

	/**
	 * The '<em><b>OPERATIONAL TEST PRODUCTS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>OPERATIONAL TEST PRODUCTS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #OPERATIONAL_TEST_PRODUCTS
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Operational test products'"
	 * @generated
	 * @ordered
	 */
	public static final int OPERATIONAL_TEST_PRODUCTS_VALUE = 1;

	/**
	 * The '<em><b>RESEARCH PRODUCTS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>RESEARCH PRODUCTS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RESEARCH_PRODUCTS
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Research products'"
	 * @generated
	 * @ordered
	 */
	public static final int RESEARCH_PRODUCTS_VALUE = 2;

	/**
	 * The '<em><b>RE ANALYSIS PRODUCTS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>RE ANALYSIS PRODUCTS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RE_ANALYSIS_PRODUCTS
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Re-analysis products'"
	 * @generated
	 * @ordered
	 */
	public static final int RE_ANALYSIS_PRODUCTS_VALUE = 3;

	/**
	 * The '<em><b>TIGGE</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TIGGE</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TIGGE
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='THORPEX Interactive Grand Global Ensemble (TIGGE)'"
	 * @generated
	 * @ordered
	 */
	public static final int TIGGE_VALUE = 4;

	/**
	 * The '<em><b>TIGGE TEST</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TIGGE TEST</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TIGGE_TEST
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='THORPEX Interactive Grand Global Ensemble (TIGGE) test'"
	 * @generated
	 * @ordered
	 */
	public static final int TIGGE_TEST_VALUE = 5;

	/**
	 * The '<em><b>MISSING</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>MISSING</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #MISSING
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Missing'"
	 * @generated
	 * @ordered
	 */
	public static final int MISSING_VALUE = 255;

	/**
	 * An array of all the '<em><b>Production Status Of Data</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final ProductionStatusOfData[] VALUES_ARRAY =
		new ProductionStatusOfData[] {
			OPERATIONAL_PRODUCTS,
			OPERATIONAL_TEST_PRODUCTS,
			RESEARCH_PRODUCTS,
			RE_ANALYSIS_PRODUCTS,
			TIGGE,
			TIGGE_TEST,
			MISSING,
		};

	/**
	 * A public read-only list of all the '<em><b>Production Status Of Data</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<ProductionStatusOfData> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Production Status Of Data</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ProductionStatusOfData get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ProductionStatusOfData result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Production Status Of Data</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ProductionStatusOfData getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ProductionStatusOfData result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Production Status Of Data</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ProductionStatusOfData get(int value) {
		switch (value) {
			case OPERATIONAL_PRODUCTS_VALUE: return OPERATIONAL_PRODUCTS;
			case OPERATIONAL_TEST_PRODUCTS_VALUE: return OPERATIONAL_TEST_PRODUCTS;
			case RESEARCH_PRODUCTS_VALUE: return RESEARCH_PRODUCTS;
			case RE_ANALYSIS_PRODUCTS_VALUE: return RE_ANALYSIS_PRODUCTS;
			case TIGGE_VALUE: return TIGGE;
			case TIGGE_TEST_VALUE: return TIGGE_TEST;
			case MISSING_VALUE: return MISSING;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private ProductionStatusOfData(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //ProductionStatusOfData
